﻿using System;
using Glue.Converters;

namespace Glue.Internals
{
    internal class SameTypeMapping:IConverter
    {
        private readonly Type type;

        public SameTypeMapping(Type type)
        {
            this.type = type;
        }

        public object Map(object from, object to)
        {
            return from;
        }

        public Type LeftType
        {
            get { return type; }
        }

        public Type RightType
        {
            get { return type; }
        }
    }
}